6f8aecd95999277681fb871bb6007acb11427023,src/freenet/support/Serializer.java,Serializer,readFromDataInputStream,#Class#DataInputStream#,55

Before Change


		if (type.equals(Boolean.class)) {
			return Boolean.valueOf(dis.read() == 1);
		} else if (type.equals(Byte.class)) {
			return new Byte((byte) dis.read());
		} else if (type.equals(Short.class)) {
			return new Short(dis.readShort());
		} else if (type.equals(Integer.class)) {

After Change


				return Boolean.FALSE;
			throw new IOException("Boolean is non boolean value: "+bool);
		} else if (type.equals(Byte.class)) {
			int b=dis.read();
			if (b<0)
				throw new IOException();
			return new Byte((byte)b);
		} else if (type.equals(Short.class)) {
			return new Short(dis.readShort());
		} else if (type.equals(Integer.class)) {